require(['monitor'], function () {
    $('#monitor').monitor({
        canId: '11',
        callback: function (data) {
        	loadData(data);
        },
        clearData: function () {
        	loadData({});
        }
    });
    
	function loadData(data) {
		if (!$.isEmptyObject(data)) {			
			//总电压
			$("#totalVoltage").html(data.totalVoltage);
			//总电流
			$("#totalElectricCurrent").html(data.totalElectricCurrent);
			//SOC值
			$("#soc").html(data.soc);
			//PEC加热状态
			$("#PEC").html(data.pecHeatingSt);
			//电池温度
			$("#batteryTemprature").html(data.bteryTept);			
		}
	}
});